package com.collect.collect;

import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.scheduling.annotation.EnableScheduling;

@Slf4j
@MapperScan("com.collect.**.dao")
@EnableScheduling
@SpringBootApplication(exclude = { DataSourceAutoConfiguration.class })
public class CollectApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(CollectApplication.class, args);
        log.info("启动成功");
    }

}
